Skip to content

update python and ffmpeg version in docker cuda #5582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dongfengweixiao
Copy link
Contributor

  1. update python version to 3.12(the version in the official repository is 3.10, which encountered errors while executing some tasks)
  2. update ffmpeg version to 6.0(the version in the official repository is 4. x, which does not meet the running requirements of stash. The downloaded ffmpeg does not support Nvidia's CUDA.)
  3. preinstall cloudscraper bs4 stashapp tools lxml using pip

Other suggestions:

Adding the cuda version to cuda build suffix in the makefile is crucial.
cuda requires that the version in the container is not higher than the version in the host computer.

@dongfengweixiao dongfengweixiao force-pushed the update_python_and_ffmpeg_in_docker_cuda branch from f57d796 to a07900c Compare December 30, 2024 03:44
@SyZeeGee
Copy link

Does this reduce the need for transcoding in some cases?

1. update python version to 3.12(the version in the official repository is 3.10, which encountered errors while executing some tasks)
2. update ffmpeg version to 6.0(the version in the official repository is 4. x, which does not meet the running requirements of stash. The downloaded ffmpeg does not support Nvidia's CUDA.)
3. preinstall cloudscraper bs4 stashapp tools lxml using pip

Signed-off-by: Dee.H.Y <[email protected]>
@dongfengweixiao dongfengweixiao force-pushed the update_python_and_ffmpeg_in_docker_cuda branch from a07900c to 09d8be6 Compare February 28, 2025 02:28
@feederbox826
Copy link
Collaborator

Python3.13 should be used, and you don't address the CUDA upgrade arg

you are also statically linking ffmpeg when the one that is downloaded by stash already supports nvenc/ CUDA https://johnvansickle.com/ffmpeg/

@dongfengweixiao
Copy link
Contributor Author

Python3.13 should be used,

It appears unnecessary to upgrade to Python 3.13 since all plugins function well with Python 3.12. Could you provide any links that specifically require Python 3.13?

and you don't address the CUDA upgrade arg

I apologize for not grasping your intention. Could you please provide a more detailed explanation?

you are also statically linking ffmpeg when the one that is downloaded by stash already supports nvenc/ CUDA https://johnvansickle.com/ffmpeg/

I’m sorry to report that despite trying the version you suggested, it doesn’t seem to run smoothly within the Docker environment. The compatibility of FFmpeg in Docker is dependent on the NVIDIA driver version within the container, which in turn is linked to the NVIDIA driver version on the host machine. After testing various versions of FFmpeg, I’ve confirmed that this particular version functions as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants